package com.dys.entity;

import java.math.BigDecimal;

/**
 * @className: com.dys.entity.Account
 * @description: 映射account表
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/09/13 下午9:07
 */
public class Account {
    private int id;

    private String name;

    private String cardNo;

    private String password;

    private BigDecimal money;

    public Account() {
    }

    public Account(int id, String name, String cardNo, String password, BigDecimal money) {
        this.id = id;
        this.name = name;
        this.cardNo = cardNo;
        this.password = password;
        this.money = money;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cardNo='" + cardNo + '\'' +
                ", password='" + password + '\'' +
                ", money=" + money +
                '}';
    }
}
